package com.liruo.idworker.alone.ipv4;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.concurrent.atomic.AtomicLong;

/**
 * @Author:liruo
 * @Date:2023-02-05-16:27:30
 * @Desc
 */
public class LocalIPv4AloneIdWorker extends IPV4AloneIdWorker {
    private static final InetAddress LOCAL;
    static{
        try {
            LOCAL = InetAddress.getLocalHost();
        } catch (UnknownHostException e) {
            throw new RuntimeException(e);
        }
    }
    public LocalIPv4AloneIdWorker() {
        super(LOCAL);
    }

    public LocalIPv4AloneIdWorker(AtomicLong atomicLong) {
        super(LOCAL, atomicLong);
    }
}
